package cn.tedu.vo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author Kiven
 */
public class UserPointVO implements Serializable {

    public UserPointVO(){}

    public UserPointVO(String username, String phone){
      this.username = username;
      this.phone = phone;
    }

    private String username;
    private String phone;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserPointVO that = (UserPointVO) o;
        return Objects.equals(username, that.username) && Objects.equals(phone, that.phone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username, phone);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserPointVO{" +
                "username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
